package appUtils;

import android.util.Log;

import constant.ApiConstants;

import static constant.ApiConstants.Debug;

public class LogUtil {

    public static void log(String tag, String content) {
        log(tag + " " + content);
    }

    public static void log(String str) {
        if (Debug) {
            Log.d(ApiConstants.TAG, str);
        }
    }

    public static void setDebug(boolean flag) {
        Debug = flag;
    }
}
